package learn.basics.constructors;

class Fu{
    public Fu(){
        System.out.println("父类无参构造函数");
    }
    public Fu(int num){
        System.out.println("父类有参构造函数");
    }
}

class Zi extends Fu{
    public Zi(){
        //super();
        //super(1);
        System.out.println("子类构造函数");
        //super(); 报错
    }
}

class DemoConstructor{
    public  static void Test(){
        Zi zi=new Zi();
    }
}


public class TestConstructors {
    public static void main(String[] args) {
        DemoConstructor.Test();
    }
}
